-- GENERATED SPELL FOR [Forest Moss Creeper] --


function spell0_2350(pUnit, Event) --@Bite,n/a--
pUnit:FullCastSpellOnTarget(17256,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2350', 584, 1)
end

function spell1_2350(pUnit, Event) --@Corrosive Poison,n/a--
pUnit:FullCastSpellOnTarget(3396,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2350', 31500, 1)
end

function spell2_2350(pUnit, Event) --@Growl,n/a--
pUnit:FullCastSpellOnTarget(14917,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2350', 0, 1)
end

function spell3_2350(pUnit, Event) --@Web,n/a--
pUnit:FullCastSpellOnTarget(4167,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2350', 4000, 1)
end

function Sorts_2350(pUnit, Event)
local choix_sorts_2350 = math.random(0, 3)
if choix_sorts_2350 == 0 then
pUnit:RegisterEvent('spell0_2350', 1, 1)
end
if choix_sorts_2350 == 1 then
pUnit:RegisterEvent('spell1_2350', 1, 1)
end
if choix_sorts_2350 == 2 then
pUnit:RegisterEvent('spell2_2350', 1, 1)
end
if choix_sorts_2350 == 3 then
pUnit:RegisterEvent('spell3_2350', 1, 1)
end
end

function mob2350_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2350', math.random(1500, 3000), 1)
end

function mob2350_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2350_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2350_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2350, 1, 'mob2350_Action')
RegisterUnitEvent(2350, 2, 'mob2350_Leave')
RegisterUnitEvent(2350, 3, 'mob2350_Kill')
RegisterUnitEvent(2350, 4, 'mob2350_Die')
